package com.caijin.system.service;

import com.caijin.common.core.domain.Result;
import com.caijin.common.core.domain.entity.Catalogue;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程目录表 服务类
 * </p>
 *
 * @author Peas
 * @since 2021-01-31
 */
public interface ICatalogueService extends IService<Catalogue> {

    /**
     * 获取章节目录
     *
     * @param cno 课程id
     * @return 章节目录
     */
    Result getChapterList(Long cno);

    Result getChapterById(Long id);

    /**
     * 删除某一章节
     *
     * @param id 章节id
     * @param cno 课程id
     * @return 结果
     */
    Result deleteChapter(Long id, Long cno);

}
